package study.json.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

@Data
@AllArgsConstructor //生成全参数构造函数
@NoArgsConstructor//生成无参构造函数
public class Product {
    private int productType;
    private String title;
    private BigDecimal price;
    private List<Part> parts;

    @Override
    public String toString() {
        return "Product{" +
            "productType=" + productType +
            ", title='" + title + '\'' +
            ", price=" + price +
            ", parts=" + parts +
            '}';
    }
}
